home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_351 / pdc / libsrc.lzh / LibSrc / StdIO / Makefile < prev   
Makefile  |  1990-04-07  |  2KB  |  54 lines

  1.  
  2. #  Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3. #  PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4. #  PDC I/O Library (C) 1987 by J.A. Lydiatt.
  5. #  This code is freely redistributable upon the conditions that this 
  6. #  notice remains intact and that modified versions of this file not
  7. #  be included as part of the PDC Software Distribution without the
  8. #  express consent of the copyright holders.  No warrantee of any
  9. #  kind is provided with this code.  For further information, contact:
  10. #   PDC Software Distribution    Internet:                     BIX:
  11. #   P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  12. #   Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  13.  
  14. #    Makefile for the stdio routines in the PDC Function Libraries
  15.  
  16. CC    = ccx
  17. LIBRARIAN = libr
  18. ADD    = -a
  19. INSERT    = -r
  20. LIBDIR    = pdc:lib
  21. CFLAGS    = +INDU:include.h
  22. #CFLAGS    = +INDU:include.h -g
  23.  
  24. SRC1 = bufmgt.c fdopen.c fgets.c fopen.c fclose.c fread.c fwrite.c
  25. SRC2 = fseek.c fgetc.c fputc.c fputs.c
  26. OBJ1 = bufmgt.o fdopen.o fgets.o fopen.o fclose.o fread.o fwrite.o
  27. OBJ2 = fseek.o fgetc.o fputc.o fputs.o
  28. PRINTSRC = fprintf.c format.c fscanf.c
  29. PRINTOBJ = fprintf.o format.o fscanf.o
  30. OLDSRC = gets.c
  31. OLDOBJ = gets.o
  32.  
  33. .SUFFIXES:    .o .a .c
  34.  
  35. .c.o:
  36.     $(CC) $(CFLAGS) -c $*.c
  37.  
  38. # As a default, the gets function is not included in PDC.lib due to its
  39. # inherent susceptibility to overrun.  Do not use it in new code.  If you
  40. # must have it for compatibility reasons, add $(OLDOBJ) to the following
  41. # dependency:
  42.  
  43. OBJS =     $(OBJ1) $(OBJ2) $(PRINTOBJ)
  44.  
  45. All :     $(OBJS) collect
  46.  
  47. collect: $(OBJ1) $(OBJ2) $(PRINTOBJ)
  48.     $(LIBRARIAN) $(INSERT) $(LIBDIR)/PDC.lib $(OBJS)
  49.  
  50. clean:
  51.     delete \#?.o
  52.